home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / Zoners Half-Life Tools / netvis / ZHLTThread.h < prev   
C/C++ Source or Header  |  2001-04-25  |  449b  |  28 lines

  1. #ifndef ZHLTTHREAD_H__
  2. #define ZHLTTHREAD_H__
  3.  
  4. #include "cc++/thread.h"
  5.  
  6. class ZHLTThread : public Thread
  7. {
  8. public:
  9.     ZHLTThread()
  10.         { }
  11.     virtual ~ZHLTThread()
  12.     {
  13.     }
  14.  
  15.     inline bool _zhlt_isCancelled()
  16.     {
  17.         return m_Cancelled.Wait(0);
  18.     }
  19.     inline bool _zhlt_isCancelled(timeout_t timer)
  20.     {
  21.         return m_Cancelled.Wait(timer);
  22.     }
  23.  
  24.     Event m_Cancelled;
  25. };
  26.  
  27. #endif//ZHLTTHREAD_H__
  28.